<template>
  <el-row :gutter="20" class="page-top">
    <el-col :span="9">
      <div class="grid-content">
        <div class="module-name">
          <span class="iconfont icon-name" v-show="this.moduleName==='人体使用手册'">&#xead2;</span>
          <span class="iconfont icon-name" v-show="this.moduleName==='现代医学篇'">&#xe80b;</span>
          <span class="iconfont icon-name" v-show="this.moduleName==='传统医学篇'">&#xe81d;</span>
          <span class="iconfont icon-name" v-show="this.moduleName==='疾病预防篇'">&#xe634;</span>
          <span class="iconfont icon-name" v-show="this.moduleName==='心理健康指南'">&#xe61e;</span>
          <span class="iconfont icon-name" v-show="this.moduleName==='常见慢性病分类'">&#xe6e7;</span>
          <span class="iconfont icon-name" v-show="this.moduleName==='传统医学养生'">&#xe6e7;</span>
          <span class="iconfont icon-name" v-show="this.moduleName==='新冠肺炎防治'">&#xe6e7;</span>
          <span class="iconfont icon-name" v-show="this.moduleName==='医学前沿'">&#xe6e7;</span>
          <span class="module-name-text">{{ this.moduleName }}</span>
        </div>
        <img src="@/assets/images/bodyUse.png" class="modern-medical-img" v-show="this.moduleName==='人体使用手册'"/>
        <img src="@/assets/images/modernMedical.jpg" class="modern-medical-img" v-show="this.moduleName==='现代医学篇'"/>
        <img src="@/assets/images/tradiitionalMedical.jpg" class="modern-medical-img" v-show="this.moduleName==='传统医学篇'"/>
        <img src="@/assets/images/prevention.jpg" class="modern-medical-img" v-show="this.moduleName==='疾病预防篇'"/>
        <img src="@/assets/images/psychology.jpg" class="modern-medical-img" v-show="this.moduleName==='心理健康指南'"/>
        <img src="@/assets/images/chronicDiseases.jpg" class="modern-medical-img" v-show="this.moduleName==='常见慢性病分类'"/>
        <img src="@/assets/images/logo.jpg" class="modern-medical-img" v-show="this.moduleName==='传统医学养生'"/>
        <img src="@/assets/images/logo.jpg" class="modern-medical-img" v-show="this.moduleName==='新冠肺炎防治'"/>
        <img src="@/assets/images/medicalLeading.jpg" class="modern-medical-img" v-show="this.moduleName==='医学前沿'"/>
      </div>
    </el-col>
    <el-col :span="9">
      <div class="grid-content">
        <HottestShow :catagoryList="catagoryList"/>
      </div>
    </el-col>
    <el-col :span="6">
      <div class="grid-content">
        <Download />
      </div>
    </el-col>
  </el-row>
</template>

<script>
import Download from "@/components/download.vue";
import HottestShow from "@/components/hottestShow.vue";
export default {
  name: "LevelOnePageTop",
  components: { Download, HottestShow },
  props:['moduleName','catagoryList'],
};
</script>

<style scoped lang="less">
.page-top {
  margin-bottom: 10px;
}
.grid-content {
  min-height: 36px;
  height: 240px;
}
.module-name {
  font-size: 20px;
  margin-bottom: 10px;
  .icon-name {
    font-size: 24px;
    color: @themeColor;
  }
}
.modern-medical-img {
  width: 100%;
  height: 100%;
}
</style>

